package com.ziyougou.product.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ziyougou.common.utils.PageUtils;
import com.ziyougou.product.entity.AttrEntity;
import com.ziyougou.product.entity.AttrGroupEntity;
import com.ziyougou.product.vo.AttrGroupAttrVo;
import com.ziyougou.product.vo.AttrGroupRelationVO;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author yuanhaipeng
 * @email yuanhaipeng@gmail.com
 * @date 2024-06-26 14:09:54
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    AttrGroupEntity selectAttrGroupByCategoryId(Long catelogId);

    PageUtils getAttrGroupListByCatId(Map<String, Object> params, Long catId);

    List<AttrEntity> getListByGroupId(Integer attrgroupId);

    void deleteByAttrIdAndGroupId(List<AttrGroupRelationVO> attrGroupRelationVOList);

    PageUtils getNoAttrListByGroupId(Integer attrgroupId, Map<String, Object> params);

    void saveRelation(List<AttrGroupRelationVO> attrGroupRelationVOList);

    List<AttrGroupAttrVo> getAttrListByCatId(Long catId);
}

